package com.gitee.simons.common.tree;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * 树形基础
 * @author JSM
 */
@Getter
@Setter
@ApiModel
public class TreeModel implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * <pre>
	 * id
	 * </pre>
	 */
	private Long id;

	/**
     * <pre>
     * 父资源编号
     * </pre>
     * 
     */
	@ApiModelProperty("父资源编号")
    private Long parentId;
	
    /**
     * <pre>
     * 资源编码
     * </pre>
     * 
     */
	@ApiModelProperty("资源编码")
    private String name;
    
    /**
     * <pre>
     * 权重值
     * </pre>
     * 
     */
	@ApiModelProperty("权重值")
    private Long seq;

	@ApiModelProperty("子菜单")
    private List<TreeModel> children;

	@ApiModelProperty("url")
	private String url;
}
